package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    void save(OrderDetail orderDetail);

    List<OrderDetail> findByOrderId(Long id);

    /**
     * 根据id查询订单详情
     * @param id
     * @return
     */
    List<OrderDetail> findOrderDetailByorderId(Long id);

    List<OrderDetail> findOrderDetailByOrderId(Long id);
}
